package weifei.wx.community.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;


@Accessors(chain = true)
@Data(staticConstructor = "create")
@Table("tie_comment")
public class TieComment
{
    private Long id;
    @NotNull
    private Long tieId;
    private Long userId;
    @Column(onInsertValue = "now()")
    private Date publishTime;
    @NotNull @NotEmpty @NotBlank
    private String content;

    public TieComment() {}
}




